gusucode.com > 瑞格先锋网络新闻管理系统 1 > 瑞格先锋网络新闻管理系统 1.3/ReadygoNews/Support/C_Cpp.js

    /*************************************
*      C/C++ Syntax Definition
*************************************/
FCSyntaxDef ["CPP"] = {
	name : "C/C++",
	delimiters : "~!%^&*()-+=|\\/{}[]:;\"'<>,.?",
	comments : "//",
	cmtcolor : "#008000",
	blocks : {
		String : {
			name	: "字符串",
			color	: "#ff8000",
			begin	: "\"",
			end		: "\"",
			escape	: "\\"
		},
		Char : {
			name	: "字符",
			color	: "#4080ff",
			begin	: "'",
			end		: "'",
			escape	: "\\"
		},
		BlockComment : {
			name	: "块注释",
			color	: "#008000",
			begin	: "/*",
			end		: "*/",
			lines	: true
		}
	},
	keywords : {
		Operator : {
			name	: "运算符",
			color	: "#0000ff",
			list	: "+ - = / % & > < ^ ! | : [ ] { } ( ) , ; . ~ * ?"
		},
		Keyword : {
			name	: "语法关键字",
			color	: "#0000ff",
			style	: "b",
			list	: "auto break class catch case continue const default do delete else extern "
					+ "for friend goto inline if new namespace operator private protected public "
					+ "return sizeof switch static this try template throw typedef virtual while "
		},
		VarType : {
			name	: "变量类型关键字",
			color	: "#0000ff",
			style	: "b",
			list	: "char double enum float int long register short signed struct "
					+ "union unsigned void volatile "
		},
		Compiler : {
			name	: "编译关键字",
			color	: "#0000ff",
			style	: "b",
			list	: "#define #error #include #elif #if #line #else #ifdef #pragma #endif #ifndef "
					+ "#undef defined __asm __fastcall __self __segment __based __segname __fortran "
					+ "__cdecl __huge __far __saveregs __export __pascal __near __loadds __interrupt "
					+ "__inline __multiple_inheritance __single_inheritance __virtual_inheritance "
		}
	}
};
//--------------------------------------------------------------
FCCheckSyntaxDef("CPP");